﻿using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace HML
{
    /// <summary>
    /// TabPagePlus子控件集合
    /// </summary>
    [ComVisible(false)]
    public class TabPagePlusControlsCollection : Control.ControlCollection
    {
        public TabPagePlusControlsCollection(TabPagePlus owner) : base(owner)
        {

        }

        public override void Add(Control value)
        {
            if (value is TabPagePlus)
            {
                throw new ArgumentException("TabPagePlus的子控件不能为TabPagePlus类型");
            }

            base.Add(value);
        }
    }

}
